package net.wsfcp.android.base;

import java.io.Serializable;

/**
 * Created by Shaoboyang on 2018/12/14.
 * 抽取的一个基类的bean,直接在泛型中传data就行
 */
//基类http返回bean
public class BaseHttpResult<T> implements Serializable {
    private int result_code;
    private String result_msg;
    private T body;

    public int getResultCode() {
        return result_code;
    }

    public void setResultCode(int result_code) {
        this.result_code = result_code;
    }

    public String getResultMsg() {
        return result_msg;
    }

    public void setResultMsg(String result_msg) {
        this.result_msg = result_msg;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }


    @Override
    public String toString() {
        return "BaseHttpResult{" +
                "status=" + result_code +
                ", message='" + result_msg + '\'' +
                ", data=" + body +
                '}';
    }
}
